[put] {sth} down to experience
1
to learn from a failure, mistake, or unpleasant situation instead of feeling bad about it
- There's nothing we can do about it now, we'll just have to put it down to experience.